/*
 * ShotMemoryStore.h
 *
 *  Created on: Oct 6, 2012
 *      Author: Administrator
 */

#ifndef SHOTMEMORYSTORE_H_
#define SHOTMEMORYSTORE_H_

#include <FBase.h>
#include <FIo.h>
#include "IShotStore.h"

class ShotMemoryStore : public IShotStore {

	public:
		ShotMemoryStore();
		virtual ~ShotMemoryStore();

	public:
		virtual Shot* GetLastShot(void);
		virtual void StoreShot(Osp::Base::ByteBuffer& data);
		virtual void DeleteShot(Osp::Base::String* name);

	private:
		int counter;
		Osp::Base::String* rootDirName;
		Osp::Io::Directory* rootDir;

};

#endif /* SHOTMEMORYSTORE_H_ */
